<template>
  <div class="app-container">
    <el-tabs v-model="currentTabName" @tab-click="handleClick">
      <el-tab-pane label="在线统计" name="List">
        <List v-if="currentTabName === 'List'" />
      </el-tab-pane>
      <el-tab-pane label="历史在线" name="Index">
        <Index v-if="currentTabName === 'Index'" />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>
<script>
import List from './components/list'
import Index from './components/index'

export default {
  name: 'History',
  components: { List, Index },
  data() {
    return {
      currentTabName: 'List'
    }
  },
  methods: {
    handleClick() {
    }
  }
}
</script>
